function successWithData(data) {
    return { code: 200, message: 'success', data: data}
}
function success() {
    return { code: 200, message: 'success'}
}

function fail(msg) {
    return { code: 500, message: msg}
}

function failWithCode(code,msg) {
    return { code: code, message: msg}
}

module.exports = {
    success,
    successWithData,
    fail,
    failWithCode
}